<include file="__THEME__/header" />
<link href="../Public/css/photo.css" rel="stylesheet" type="text/css" />
<!-- 头部 end -->

<div class="content"><!-- 内容 begin  -->

	<include file="__THEME__/apps" />

	<div class="main"> <!-- 右侧内容 begin  -->

		<div class="page_title"> <!-- page_title begin -->
			<h2><img src="../Public/images/ico_app02.gif" />编辑专辑“{$album.name}”</h2>
		<div class="c"></div>
</div><!-- page_title end -->
		<div class="tab-menu"><!-- 切换标签 begin  -->
		<ul>
			<li><a href="__URL__/index"><span>普通上传</span></a></li>
			<li><a href="__URL__/flash" class="on"><span>批量上传</span></a></li>
			<li><a href="__URL__/camera"><span>在线拍照</span></a></li>
            <li><a href="__APP__/Index/photos"><span>返回我的照片</span></a></li>
		</ul>
		</div><!-- 切换标签 end  -->

		<div class="photoBox"> 
        <form method="post" action="__APP__/Upload/save_upload_photos" name="save_upload_photos" onsubmit="return check_form()" enctype="application/x-www-form-urlencoded">
			<div class="msg" style="margin-top:30px; margin-bottom:30px;">
				<strong style="font-size:14px;"><img src="../Public/images/fzcg_dh[1].gif" width="17" height="13" /> 照片上传成功！</strong>
			</div>
            
            <div class="msg">
            	<strong>
                	<input name="publish_feed" type="radio" value="1" <php>if($publish_feed == 1){</php>checked='checked'<php>}</php> />发布动态通知大家
                    <input name="publish_feed" type="radio" value="0" <php>if($publish_feed == 0){</php>checked='checked'<php>}</php> />不发送通知 
                </strong>
			</div>
            
            <hr style="clear:both" />
  			<div class="edit_list">
                <div class="msg">
                    <p>选择照片封面、或者修改照片的标题，然后点击“保存信息，完成上传”按钮</p>
                </div>
                <ul>
                <volist name="photos" id="li">
                <li class="bg04">
                    <div class="box">
                        <div class="c1">
                        	<div class="photo130"><a href="#"><img src="__ROOT__/thumb.php?w=120&h=100&t=f&url={$li.savepath|get_photo_url}" /></a></div>
                        </div>
                        <div class="c2">
                            <dl>
                                <dt>名称：</dt>
                                <dd>
                                  <input name="name[{$li.id}]" value="{$li.name}" type="text" class="TextH20" style="width:250px;" onblur="this.className='TextH20'" onfocus="this.className='Text2'" />
                                  <input type="hidden" name="savepath[{$li.id}]" value="{$li.savepath}" />
                                </dd>
                                <div class="c"></div>
                            </dl>
                            <dl>
                              <dt>描述：</dt>
                                <dd>
                                  <textarea name="explain[{$li.id}]" rows="4" class="Text" style="width:250px;" onfocus="this.className='Text1'" onblur="this.className='Text'"></textarea>
                                </dd>
                          </dl>
                            <dl>
                                <dt>标签Tags：</dt>
                                <dd>
                                <input name="tags[{$li.id}]" type="text" class="TextH20" style="width:250px;" onblur="this.className='TextH20'" onfocus="this.className='Text2'" /><br />请用逗号（，）来分开所有的标签，最多只能有10个标签
                                </dd>
                            </dl>
                      </div>
                        <div class="c3">请确认没有上传非法内容，否则管理员有权在不通知的情况下删除您上传的内容，情节严重者将移交相关机构处理。</div>
                        <div class="c"></div>
                    </div>
                </li>
                </volist>
                </ul>
			</div>
            <!-- edit_list end  -->
			<div class="clear ml10">
				<input type="hidden" name="albumId" value="{$album.id}" />
                <input type="hidden" name="upnum" value="{$upnum}" />
				<input type="submit" class="btn_b" value="保存信息，完成上传" />
			</div>
		</form>
		</div>  </div><!-- 右侧内容 end  -->
  <div class="c"></div>
</div><!-- 内容 end -->
<include file="__THEME__/footer" />
<script type="text/javascript">

var pb_strConfirmCloseMessage;
var pb_blnCloseWindow = false;
pb_strConfirmCloseMessage ="你的照片还没有保存，如果离开本页，上传的照片会丢失！";
ShowConfirmClose(true);

function ConfirmClose() {
	window.event.returnValue = pb_strConfirmCloseMessage;
	pb_blnCloseWindow = true;
}

function ShowConfirmClose(blnValue) {
	if(blnValue) {
		document.body.onbeforeunload = ConfirmClose;
	} else {
		document.body.onbeforeunload = null;
	}
}

function check_form(){
	ShowConfirmClose(false);
	return true;
}

</script>